<?php

/**
 *  合同管理 
 * Created by PhpStorm.
 * User: Apache
 * Date: 2019/10/27
 * Time: 10:02
 */

namespace app\api\controller\contractmanage;

use think\Controller;
use PhpOffice\PhpWord\TemplateProcessor;
use app\api\controller\common\CommonPlus;
use app\common\comgz;
// use think\console\command\make\Controller;  
use Phpqrcode\phpqrcode;
use think\Db;
//use Vendor\Weixin\Wechat;

class Comgzh extends Controller
{
 
    // <s></s>
    protected $admin;
    protected $model = null;
    protected $statusArr = [0=>'未处理',1=>'通过',2=>'拒绝'];
    protected $backArr = [0=>'未回传',1=>'已回传'];
    public function _initialize()
    {
        $this->admin = session('admin');
        $this->model = model('Contractmgr');
    }
 
    // wudon
    public function valid(){
      Vendor('Weixin.Wechat'); 
   // $object = new \QRcode();
    $options = array(
        'token' => 'cmtm',
        'appid' => 'wxc4173bbfb7944b37',
        'appsecret' => '24c84bee3e201788b224fb834203e18c'
    );
    $Wechat = new \Vendor\Weixin\Wechat($options);
    //$Wechat = new \Wechat($options);
    $Wechat->valid(); // 验证key
   }
   public function test(){
    $_SESSION['access_token1']['a']=111;
    $_SESSION['access_token1']['b']=222;
    $_SESSION['access_token2']=2333;
    $item=array('name'=>'zhangsan','age'=>12);
    session('test',123);
      var_dump( $_SESSION);die;
   }

   public function test1(){

    $this->assign('name', 'thinkphp');
    return $this->fetch();

    //getHttp(111);
   // xj_zz_ids(1);
  //  $_SESSION['access_token']=111;
     // var_dump( $_SESSION['access_token1']);die;
    // var_dump( $item);die;
   }


   

 
         
 
      
    // the ed

}
